<?php

namespace Admin\Factory\Controller;

use Admin\Controller\IndexController;
use Admin\Controller\MenuController;
use Admin\Controller\PageController;
use Admin\Controller\TemplateController;
use Zend\ServiceManager\FactoryInterface;
use Zend\ServiceManager\ServiceLocatorInterface;

class MenuControllerFactory implements FactoryInterface
{
    public function createService(ServiceLocatorInterface $serviceLocator)
    {
        $identityService = $serviceLocator->getServiceLocator()->get('AdminIdentityManager');
        $controller = new MenuController($identityService);
        return $controller;
    }
}